<?php die;?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>miceCMS,觅策企业网站管理系统</title>
<link href="css/default.css" rel="stylesheet" type="text/css">
<link href="css/fieldset.css" rel="stylesheet" type="text/css">
<link href="css/categorys.css" rel="stylesheet" type="text/css">
<script type='text/javascript' src='js/error.js'></script>
<script type='text/javascript' src='js/calendar.js'></script>
<script type='text/javascript' src='js/categorys.js'></script>
<script type='text/javascript' src='js/ShowMessage.js'></script>
<script language="JavaScript">
function CheckForm()
{
 if (document.form1.title.value.length == 0)
 {
  alert("标题不能为空！");
  document.form1.title.focus();
  return false;
 } 
 if (document.form1.upfile.value.length == 0)
 {
  alert("文件不能为空！");
  document.form1.upfile.focus();
  return false;
 } 
 if (document.form1.category_id.value.length == 0)
 {
  alert("至少要选择一个分类！");
  document.form1.title.focus();
  return false;
 } 
  return true;
}
</script>
</head>

<body>
<!--{include file="admin/upload_div.php"}-->
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
	<form action="<!--{$formaction}-->" method="post" name="form1" id="form1" onsubmit="mice_checkbox_getvalue(document.form1.clist);return CheckForm()">
	<tr>
		<td width="70%" valign="top">
			<fieldset class="adminform">
				<legend>基本设置</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="230">
					<tr>
						<td width="65" class="keyred" height='20'>标 题:</td>
						<td colspan="2">
							<input name='article_id' id='article_id' type='hidden' value='<!--{$results->getArticleId()}-->'>
							&nbsp;<input name='title' id='title' type='text' size='65' value='<!--{$results->getTitle()}-->'>
						</td>
					</tr>
					<tr>
						<td width="65" class="keyred" height='20'>文 件:</td>
						<td colspan="2">
							&nbsp;<input name='upfile' id='upfile' type='text' size='35' value="<!--{'micefun'|MiceRestoreQuote:$results->getUpfile()}-->">&nbsp;(请填写文件地址,<!--{'micefun'|ConfigV:'upload_link'}--><font color="red">上传文件</font></a>)</td>
					</tr>				
					<tr>
						<td width="65" class="key" height='20'>关键字:</td>
						<td colspan="2">
							&nbsp;<input name='tags' id='tags' type='text' size='35' maxlength='200' value='<!--{$results->getTags()}-->'>&nbsp;(多个标签用逗号[,]或空格分开)
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>缩略图:</td>
						<td colspan="2">
							&nbsp;<input name='img' id='img' type='text' size='35' maxlength='200' value="<!--{'micefun'|MiceRestoreQuote:$results->getImg()}-->">&nbsp;(请填写图片地址,<!--{'micefun'|ConfigV:'upload_link'}--><font color="red">上传图片</font></a>)&nbsp;<img src="imgs/help.png" onclick="ShowMessage.show('缩略图','缩略图为空的时候,系统自动提取文件说明中的第一张图片作为缩略图',0,'')">
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>跳转地址:</td>
						<td colspan="2">
							&nbsp;<input name='url' id='url' type='text' size='35' value="<!--{'micefun'|MiceRestoreQuote:$results->getUrl()}-->">&nbsp;(浏览此文档将跳转到该地址)
						</td>
					</tr>
					<tr>
						<td width="65" class="keyred" height='20'>分 类:</td>
						<td colspan="2">
						<div style="width:220px;height:110px;overflow:auto;border: 2px inset #FFFFFF;">
							<SCRIPT LANGUAGE="JavaScript">
							<!--
							mice_checkbox("clist","<!--{$categorynames}-->","<!--{$categoryid1}-->","<!--{$categoryid2}-->","<!--{$categoryid3}-->")
							//-->
							</SCRIPT>
						</div>
							<input type="hidden" name="category_id" id="category_id">
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
		<td  width="30%" valign="top">
			<fieldset class="adminform">
				<legend>细节设置</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="230">
					<tr>
						<td width="65" class="key" height='20'>撰写时间:</td>
						<td colspan="2">
							&nbsp;<input name='createdat' id='createdat' type='text' value="<!--{'micefun'|Num2Time:$results->getCreatedat()}-->" onClick="setDayHM(this);">
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>文章来源:</td>
						<td colspan="2">
							&nbsp;<input name='comefrom' id='comefrom' type='text' value="<!--{if $results->getComefrom()==''}-->本站<!--{else}--><!--{$results->getComefrom()}--><!--{/if}-->">
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>浏览次数:</td>
						<td colspan="2">
							&nbsp;<input name='browses' id='browses' type='text' value='<!--{$results->getBrowses()}-->'></td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>浏览权限:</td>
						<td colspan="2">
							&nbsp;<select name="group_id">
							<option value='-1' <!--{if $results->getGroupId()==-1}-->selected<!--{/if}-->>和分类权限相同</option>
							<option value='0' <!--{if $results->getGroupId()==0}-->selected<!--{/if}-->>匿名用户</option>
							<!--{foreach from=$groups item=group}-->
								<option value='<!--{$group->getGroupId()}-->' <!--{if $group->getGroupId()==$results->getGroupId()}-->selected<!--{/if}-->><!--{$group->getName()}--></option>
							<!--{/foreach}-->
							</select>
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>消费点数:</td>
						<td colspan="2">
							&nbsp;<input name='pointnum' id='pointnum' type='text' value='<!--{$results->getPointnum()}-->' size="16">&nbsp;<img src="imgs/help.png" onclick="ShowMessage.show('消费点数','浏览此文档扣取用户的点数(等已登录用户有效)<br>正值表示扣取用户点数,负值表示为用户加上的点数',0,'')"></td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>文件名:</td>
						<td colspan="2">
							&nbsp;<input name='filename' id='filename' type='text' value='<!--{$results->getFilename()}-->' size="16">&nbsp;<img src="imgs/help.png" onclick="ShowMessage.show('文件名','此文档生成html文件的文件名<br>默认按照该分类设置的规则命名<br>此文档生成html文件的文件名命名规则,例如：article_{Y}{M}{D}_{AID}.html<br>{Y}、{M}、{D} 年月日<br>{TIMESTAMP} INT类型的UNIX时间戳<br>{AID} 文章ID,不可缺少<br>也可单独命名,命名示例:filename.html',0,'')"></td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>显示:</td>
						<td colspan="2">
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="0" <!--{if $results->getIsvisible()==0}-->checked<!--{/if}-->/>是
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="1" <!--{if $results->getIsvisible()==1}-->checked<!--{/if}-->/>否
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>置顶:</td>
						<td colspan="2">
							&nbsp;<input name='istop' id='istop' type="radio" value="1" <!--{if $results->getIstop()==1}-->checked<!--{/if}-->/>是
							&nbsp;<input name='istop' id='istop' type="radio" value="0" <!--{if $results->getIstop()==0}-->checked<!--{/if}-->/>否
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>推荐:</td>
						<td colspan="2">
							&nbsp;<input name='iscommend' id='iscommend' type="radio" value="1" <!--{if $results->getIscommend()==1}-->checked<!--{/if}-->/>是
							&nbsp;<input name='iscommend' id='iscommend' type="radio" value="0" <!--{if $results->getIscommend()==0}-->checked<!--{/if}-->/>否
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
</table>
<table width="99%" align="center" border="0" cellpadding="0" cellspacing="0">
  <tr align="center">
	<td height="5">
		<fieldset class="adminform">
			<legend>详细资料</legend>
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td width="65"  class="key">文件属性:</td>
					<td colspan="2">
						<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
							<tr > 
								<td  bgcolor="#F9F9F9" height="30" valign='middle'>
									<!--{$summary}-->
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td width="65"  class="key">文件说明:</td>
					<td colspan="2">
						<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
							<tr > 
								<td  bgcolor="#F9F9F9" height="30" valign='middle'>
									<!--{$editor}-->
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</fieldset>
	</td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<tr > 
		<td bgcolor="#F9F9F9" height="30" valign='middle'>
			&nbsp;&nbsp;<label><input type="checkbox" name="goon" id="goon" value="1">保存后继续添加</label>&nbsp;&nbsp;<input type="submit" value="保存[S]" accesskey="s"/>&nbsp;<input type="reset" value="重置[R]" accesskey="r"/>&nbsp;<input type="button" onclick="javascript:history.back(-1)" value="返回[B]" accesskey="b"/>
		</td>
	</tr>
	</form>
</table>
<br>
</body>
</html>